Skip to main content

Debug ESP32-S3 with builtin Debugger

This tutorial is for Windows only

Debugging with ESP-IDF

I used ESP-IDF in VSCode

Zdiag is not used / it will break it.

Even though you have ESP-IDF installed via VScode also install ESP Tools download link , thease are for driver installation for the boards and additional tools that you may need.

Use the leatest Version of thease links because they are for version 5.4.1

Main Link

https://docs.espressif.com/projects/esp-idf/en/v5.4.1/esp32s3/api-guides/jtag-debugging/index.html#introduction

After all of this it should be all good to go. Also first bild than flash then debug, dont skip thase steps. You must connect both of the usb ports on the esp to your computer. Also Chose the serial port which esp-idf recognizes as the esp32-s3

I could figure out how to watch or modify varables, but the brakpoints were working

Debugging with PlatformIO

Do all of the previous steps, BUT now on Interface 2 on the usb port of the esp32 in zadig replace the driver with WinUSB.

More detailed tutorial link

And it should work but its slower than the esp-idf but variable watch and variable change worksss soo yeah.